package Solution_3;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class Test {
    public static void main(String[] args) {
        Card micrcard = new MicroCard(1111,"微型卡",10,500,50);
        Card bigcard = new BigCard(100,"大卡",30,100,100);
        Card small = new SmallCard();


        System.out.println("-------------------通话接口-----------------------------------");
        CallService callService = new CallServer("通话套餐A",200,100,48);
        InternetServer internetServer = new InternetServer(600);

        callService.call(100,bigcard);
        System.out.println("--------------------上网接口------------------------------");
        internetServer.internet(500,micrcard);

        System.out.println("------------------通话服务-------------------------------------");
        /**
         * 通话服务
         */
        Server server = new CallServer("通话套餐A",200,100,48);
        server.show();
        System.out.println("----------------通话消费-------");
        server.consume();
        System.out.println();
        /**
         * 上网服务
         */
        System.out.println("--------------------上网服务----------------");
        server = new InternetServer(500);
        server.show();
        System.out.println("-------------------上网消费-------");
        server.consume();





    }
}
